<?php
namespace App\Api\Rules;

use Illuminate\Contracts\Validation\Rule;


class ConnectorVerify implements Rule{
    public function passes($attribute, $value){
        if(count(explode('-', $value)) > 1 || count(explode(',', $value))){
            return true;
        }
        return false;
    }

    public function message(){
        return "区间参数请使用文档指定符号连接";
    }
}